package com.lagou.xsq_springboot_rpc_consumer.controller;

import com.alibaba.fastjson.JSONObject;
import com.lagou.xsq_springboot_rpc_common.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: UserController
 * @Description:
 * @author: xsq
 * @date: 2020年05月26日
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/test")
    public void test() {
        JSONObject param = new JSONObject();
        param.put("test", "test");
        System.out.println(userService.sayHello(param));
    }
}
